// 如果回话有保存登陆则返回登陆的信息
export function getUserInfo () {
    // return false
    if (sessionStorage.userInfo) {
        let obj = JSON.parse(sessionStorage.userInfo)
        return obj
    } else if (localStorage.userInfo) {
        let obj = JSON.parse(localStorage.userInfo)
        return obj
    }
    return false
}
